<template>
	<view class="" style="background-color: #F8F8F8;">
		<view class="nav-back">
			<top-heigth :backTitle="backTitle"></top-heigth>
		</view>
		

		<!-- <view v-if="list.length == 0" class="kong-box">
			<uv-empty mode="" text="暂时没有服务的项目~" icon="/static/image/kong-start.png"></uv-empty>
		</view> -->
		
		
		<!-- 
		 
		<view class="goods" v-for="item in list">
			<view class="img-box">
				<image class="img" :src="item.serviceImage" mode=""></image>
			</view>
			<view class="goods-font">
				<view class="start-top">
					<h1 class="goods-h1 start-h1">{{item.serviceName}}</h1>
					<image class="goods-start" src="/static/image/start-choose.png" mode=""></image>
				</view>
				<view class="sale">销量{{item.serviceBaseTime}}</view>
				<view class="font-bottom">
					<view class="font-bottom-l">
						<view class="red">
							<span class="goods-span-red">¥</span>{{item.serviceAmount}}
						</view>
						<view class="grey">¥{{item.serviceOldAmount}}</view>
					</view>
					 <view class="but-blue t-but">立即预约</view> 
				</view>
			</view>
		</view>
		 
		 -->
		
		
		<view class="content-box">
			<view class="public-box m-t24 service-box" style="padding-top:0; padding-bottom: 0;">
				<view class="service-box-l">
					<image class="service-box-img" src="/static/image/pay-box22.png" mode=""></image>
				</view>
				<view class="goods-box">
					<view class="goods">
						<view class="img-box">
							<image class="img" src="/static/logo.png" mode=""></image>
						</view>
						<view class="goods-font">
							<view class="start-top">
								<h1 class="goods-h1 start-h1"> lkajsdfj啊收到了放假啊独立访客案例的会计法律的肌肤奥兰多科技发达积分安德列夫卡戴珊</h1>
								<image class="goods-start" src="/static/image/start-choose.png" mode=""></image>
							</view>
							<view style="height: 50rpx;"></view>
							<!-- <view class="sale">销量0000</view> -->
							<view class="font-bottom">
								<view class="font-bottom-l">
									<view class="red">
										<span class="goods-span-red">¥</span>000
									</view>
									<!-- <view class="grey">¥000</view> -->
								</view>
								 <!-- <view class="but-blue t-but">立即预约</view> -->
							</view>
						</view>
					</view>
				</view>
				
			</view> 
			
			<view class="service-but">确定</view>
		</view>
		
	</view> 
</template> 

<script>
	import TopHeigth from '@/components/TopHeigth.vue'
	import { checkLogin } from "@/util/checkLogin.js"
	export default {
		data() {
			return {
				userInfo:uni.getStorageSync('userInfo'),
				backTitle:"服务项目",
				num:1,
				list:[],
			}
		},
		components: { TopHeigth },
		onLoad() {
			this.list1()
		},
		methods: {
			list1:function(){
				checkLogin(() => {
					uni.$u.http.post('/api/shop/v1_0/tAppStaffRCA/turnTAppStaffInfo',{
						id:this.userInfo.id,
					}).then((res) => {
						this.list = res.data.tAppServiceVos
						
					})
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	@mixin flex($direction: row) {
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		flex-direction: $direction;
	}
	.uv-nav-slot {
		@include flex;
		align-items: center;
		justify-content: space-between;
		border-width: 0.5px;
		border-radius: 100px;
		border-color: #dadbde;
		padding: 3px 7px;
		opacity: 0.8;
	}
	.js{
		padding-bottom: 0;
		.list-box{
			border-radius: 0;
			border-bottom: 2rpx solid #e8e8e8;
		}
		.list-box:last-child{
			border-bottom: none
		}
	}
	
	.time-top{
		@include flex;
		align-content: space-between;
		width: 100%;
		padding-top: 20rpx;
		.title-font{
			font-size:28rpx;
			color: #333;
			text-align: center;
			padding-bottom: 16rpx;
			margin-right: 56rpx;
		}
		.choose{
			font-weight: bold;
			background: url("/static/image/title-line.png") no-repeat bottom center;
		}
	}
	.start-top{
		width: 100%;
		@include flex;
		align-items: center;
		align-content: space-between;
	}
	.start-h1{
		width: calc(100% - 32rpx);
	}
	.goods-start{
		width: 32rpx;
		height: 32rpx;
	}
	
	.goods{
		border-bottom: 2rpx solid #EEEEEE;
	}
	.goods-box .goods:last-child{
		border: none;
	}
	/* 222222 */
	.list-center-h1{
		margin-bottom: 0 ;
	}
	.list-bottom{
		width: 100%;
	}
	
	.goods{
			display: flex;
			align-items: center;
			justify-content: flex-start;
			padding:32rpx 0;
			.img-box{
				width:160rpx;
				height: 160rpx;
				border-radius:20rpx;
				margin-right: 24rpx;
				overflow: hidden;
				.img{
					width: 160rpx;
					height: 160rpx;
				}
			}
			
			.goods-font{
				width:calc(100% - 184rpx);
				.goods-h1{
					font-size:30rpx;
					font-weight: bold;
					text-overflow: ellipsis;
					white-space: nowrap;
					overflow: hidden;
					margin-bottom: 8rpx;
				}
				.sale{
					font-size: 24rpx;
					color: #999;
					margin-bottom: 24rpx;
				}
				.font-bottom{
					display: flex;
					align-items: flex-end;
					justify-content:space-between;
					.font-bottom-l{
						display: flex;
						align-items: flex-end;
						justify-content: flex-start;
						.goods-span-red{
							font-size: 24rpx;
						}
						.red{
							color: #F82727;
							font-size: 34rpx;
							font-weight: bold;
							margin-right: 16rpx;
							span{
								
							}
						}
						.grey{
							color: #999;
							font-size: 24rpx;
						}
					}
				}
			}
		}
		
		.service-box{
			display: flex;
			align-items: center;
			justify-content: flex-start;
		}
		.goods-box{
			width: calc(100% - 50rpx);
		}
		.service-box-l{
			width: 30rpx;
			margin-right: 20rpx;
		}
		.service-box-img{
			width: 28rpx;
			height: 28rpx;
		}
		.service-but{
			padding: 0 56rpx;
			height: 96rpx;
			text-align: center;
			color: #fff;
			line-height: 96rpx;
			background: #27A0FF;
			margin-top: 80rpx;
			border-radius: 48rpx;
			font-size: 32rpx;
		}
</style>
